package cn.silver.module.message.controller;


import cn.silver.framework.mybatis.controller.BusController;
import cn.silver.module.message.bean.TemplateBean;
import cn.silver.module.message.domain.MsgTemplate;
import cn.silver.module.message.param.TemplateParam;
import cn.silver.module.message.service.IMsgTemplateService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 短消息模板Controller
 *
 * @author Silver Zhou
 */

@RestController
@RequiredArgsConstructor
@Tag(name = "消息管理-消息模板管理")
@RequestMapping("/msg/template")
public class MsgTemplateController extends BusController<IMsgTemplateService, MsgTemplate, TemplateParam, TemplateBean> {

    @Override
    @Resource
    public void setBaseService(IMsgTemplateService baseService) {
        this.setCode("msg:template");
        this.setTitle("消息管理-消息模板管理");
        this.baseService = baseService;
    }
}
